Game Coding Complete, 4th Edition by McShaffry Mike & Graham David

Game Coding Complete, 4th Edition by McShaffry Mike & Graham David

Author:McShaffry, Mike & Graham, David [McShaffry, Mike]
Language: eng
Format: mobi, epub
Publisher: Cengage Learning
Published: 2012-04-02T16:00:00+00:00


HRESULT DirectSoundAudioBuffer::FillBufferWithSound( void )

{

HRESULT hr;

VOID *pDSLockedBuffer = NULL; // DirectSound buffer pointer

DWORD dwDSLockedBufferSize = 0; // Size of DirectSound buffer

DWORD dwWavDataRead = 0; // Data to read from the wav file

if( m_Sample )

return CO_E_NOTINITIALIZED;

// Make sure we have focus, and we didn't just switch in from

// an app which had a DirectSound device

if( FAILED( hr = RestoreBuffer( NULL ) ) )

return DXUT_ERR( L"RestoreBuffer", hr );

int pcmBufferSize = m_Resource->Size();

shared_ptr<SoundResourceExtraData> extra =

static_pointer_cast<SoundResourceExtraData>(m_Resource->GetExtra());



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.